<%-- 
    Document   : reportInfo
    Created on : Aug 3, 2012, 9:49:48 PM
    Author     : phong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <f:view>
            <a href="signList.jsp">Sign List</a>&nbsp;|&nbsp;
            <a href="viewStatic.jsp">View Static</a>&nbsp;|&nbsp;
            <a href="reportList.jsp">Report Static</a>
            <h2>Report Information</h2>
            <h:form id="report">
                <h:panelGrid columns="2" border="1">
                    <h:outputText value="Report ID:"/>
                    <h:outputText id="id" value="#{reportBean.report.id}"/>
                    <h:outputText value="Device ID:"/>
                    <h:outputText id="deviceID" value="#{reportBean.report.device.id}"/>
                    <h:outputText value="Lab ID:"/>
                    <h:outputText id="labID" value="#{reportBean.report.device.lab.id}"/>
                    <h:outputText value="Sender:"/>
                    <h:outputText id="sender" value="#{reportBean.report.userBySender.name}"/>
                    <h:outputText value="Create Date:"/>
                    <h:outputText id="createDate" value="#{reportBean.report.createDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="Title:"/>
                    <h:outputText id="title" value="#{reportBean.report.title}"/>
                    <h:outputText value="Content:"/>
                    <h:inputTextarea readonly="true" id="content" value="#{reportBean.report.content}"/>
                    <h:outputText value="Status:"/>
                    <h:outputText id="status" value="#{reportBean.report.status}"/>
                    <h:outputText value="Technician:"/>
                    <h:outputText id="technician" value="#{reportBean.report.userByTechnician.name}"/>
                    <h:outputText value="EndDate:"/>
                    <h:outputText id="endDate" value="#{reportBean.report.endDate}"/>                     
                </h:panelGrid>
            </h:form>   
        </f:view>
    </body>
</html>
